home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: netcom.com!milyng
- From: mikael@pobox.com (Mikael Lyngvig)
- Subject: Re: Linking LIBs
- Message-ID: <milyngDM8In2.KLu@netcom.com>
- Sender: milyng@netcom9.netcom.com
- Organization: Hacker's Paradise, Inc.
- X-Newsreader: WinVN 0.99.7
- References: <4ee2ta$6b3@masala.cc.uh.edu>
- Date: Sun, 4 Feb 1996 04:47:26 GMT
-
- In article <4ee2ta$6b3@masala.cc.uh.edu>, txs53132@bayou.uh.edu says...
- >
- > I just started linking LIB files to my projects (TC++ 3.0). The
- >programs work fine in TC, but I have a problem when they are run from
- >DOS. After execution, the memory allocated for the program doesn't seem
- >to be freed. Before execution, I have about 600k conventional memory
- >left. After execution, I have about 160k (not enough to even run TC
- >again). How do I stop this?
-
- Phew! That sounds obscure :) I have no real idea why this is, but would like
- to suggest that you start with something simple and increase the complexity
- only when it works. First try to compile and link a single .C file (don't
- use any external functions). Then try to modules, then try to add a library.
-
- My best bet is that you're somehow getting the wrong startup code linked in.
- What you are explaining shouldn't be doable (unintentionally, that is).
-
-
- Mikael
-
-